package com.opensource.baowebcon.controller;

import com.opensource.common.redis.RedisCache;
import com.opensource.datamodel.service.BidInfoService;
import com.opensource.datamodel.service.DemotableService;
import com.opensource.datamodel.service.IndexBaseInfoService;
import com.opensource.datamodel.service.ProductInfoService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author wzh
 * @date 2024/5/6
 * @apiNote
 */

public class BaseController {

    //声明公共的方法，属性的等
    @DubboReference(interfaceClass = DemotableService.class,version = "1.0")
    protected DemotableService newtableService;
    //平台信息服务
    @DubboReference(interfaceClass = IndexBaseInfoService.class,version = "1.0")
    protected IndexBaseInfoService indexBaseInfoService;
    //产品服务
    @DubboReference(interfaceClass = ProductInfoService.class,version = "1.0")
    protected ProductInfoService productInfoService;
    @DubboReference(interfaceClass = BidInfoService.class,version = "1.0")
    protected BidInfoService investInfoService;
    //redis
    @Autowired
    protected RedisCache redisCache;


}
